/* 
    PidFile.h
    -----------------
		This class is used to manage a file that is often created during the 
		lifetime of a program.  It is automatically cleaned up when the object 
		goes out of scope.
*/
#ifndef __PIDFILE_H
#define __PIDFILE_H

class PidFile {

	public:
		PidFile();
		virtual ~PidFile();
	
		void Create(const pid_t pid, const char *pid_file);
		void Remove(void);
	
	protected:
	
	private:
		pid_t _pid;
		char *_pid_file;


};

#endif
